package com.itheima.api;

import com.itheima.mapper.CmsPrefrenceAreaMapper;
import com.itheima.pojo.CmsPrefrenceArea;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 袁鹏
 * @date 2022-10-14-8:16
 */
@DubboService
public class CmsPrefrenceAreaApiImpl implements CmsPrefrenceAreaApi{

    @Autowired
    private CmsPrefrenceAreaMapper cmsPrefrenceAreaMapper;

    @Override
    public List<CmsPrefrenceArea> listAll() {
        return cmsPrefrenceAreaMapper.selectList(null);
    }
}
